package org.pku_uestc.hackathon.bean;


/**
 * 处理到具体的选项，如湿度传感器的上限控制
 * 
 * @author Jason wu
 */

public interface ISensorHandler {
	
	public static final int TYPE_HIGHTEMPHANDLER = 0;
	public static final int TYPE_LOWTEMPHANDLER	= 1;
	public static final int TYPE_HIGHHUMHANDLER	= 2;
	
	public static final int TYPE_SIZE = 3;
 
	public int getType();
	
	/**
	 * 对事件作出响应
	 * @return
	 */
	public boolean onAction();
	
	/**
	 * 判断是否达到响应标准
	 * @return
	 */
	public boolean check(Object... datas);
	
	public void changeThreshold(float threshold);
}
